package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 合同信息
 * </p>
 *
 * @author chenxuebin
 * @since 2018-11-26
 */
@TableName("t_contract")
public class Contract extends Model<Contract> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 标题
     */
	private String title;
	private Long khid;
    /**
     * 客户
     */
	private String khname;
	private Long soid;
    /**
     * 成交金额
     */
	private BigDecimal okmoney;
    /**
     * 交付状态@1：等待交付；2：交付；3：交付完成
     */
	private Integer jfstatus;
    /**
     * 回款状态@1：等待回款；2：回款中；3：回款完成
     */
	private Integer hkstatus;
    /**
     * 合同状态@1：正常；2：已完成；3：已取消
     */
	private Integer htstatus;
    /**
     * 联系人
     */
	private String linkman;
    /**
     * 签署人
     */
	private String qsman;
    /**
     * 开始时间
     */
	private Date starttime;
    /**
     * 结束时间
     */
	private Date endtime;

	private Integer state;
    /**
     * 条款
     */
	private String tiaokuan;
	private Long uid;
	private Long mid;
	private Long mpid;
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getKhid() {
		return khid;
	}

	public void setKhid(Long khid) {
		this.khid = khid;
	}

	public String getKhname() {
		return khname;
	}

	public void setKhname(String khname) {
		this.khname = khname;
	}

	public Long getSoid() {
		return soid;
	}

	public void setSoid(Long soid) {
		this.soid = soid;
	}

	public BigDecimal getOkmoney() {
		return okmoney;
	}

	public void setOkmoney(BigDecimal okmoney) {
		this.okmoney = okmoney;
	}

	public Integer getJfstatus() {
		return jfstatus;
	}

	public void setJfstatus(Integer jfstatus) {
		this.jfstatus = jfstatus;
	}

	public Integer getHkstatus() {
		return hkstatus;
	}

	public void setHkstatus(Integer hkstatus) {
		this.hkstatus = hkstatus;
	}

	public Integer getHtstatus() {
		return htstatus;
	}

	public void setHtstatus(Integer htstatus) {
		this.htstatus = htstatus;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getQsman() {
		return qsman;
	}

	public void setQsman(String qsman) {
		this.qsman = qsman;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public String getTiaokuan() {
		return tiaokuan;
	}

	public void setTiaokuan(String tiaokuan) {
		this.tiaokuan = tiaokuan;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Contract{" +
			"id=" + id +
			", title=" + title +
			", khid=" + khid +
			", khname=" + khname +
			", soid=" + soid +
			", okmoney=" + okmoney +
			", jfstatus=" + jfstatus +
			", hkstatus=" + hkstatus +
			", htstatus=" + htstatus +
			", linkman=" + linkman +
			", qsman=" + qsman +
			", starttime=" + starttime +
			", endtime=" + endtime +
			", tiaokuan=" + tiaokuan +
			", uid=" + uid +
			", mid=" + mid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
